package com.jymj.enumEntity.zjd;

/**
 * Created by ljj on 2018/9/10.
 */
public enum ApplyEnum {
    two("基础信息填报", 1),
    nine("资料审核", 2),
    three("审批资料", 3),
    four("审批通过", 4),
    five("审批驳回", 5),
    six("验收", 6),
    seven("确权登记", 7),
    ;
    // 成员变量
    private String name;
    private int index;
    // 构造方法
    private ApplyEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }
    // 普通方法
    public static String getName(int index) {
        for (ApplyEnum s : ApplyEnum.values()) {
            if (s.getIndex()==index) {
                return s.name;
            }
        }
        return null;
    }
    // get set方法
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getIndex() {
        return index;
    }
    public void setIndex(int index) {
        this.index = index;
    }
}
